package org.ucas.faker.web.dao.patents;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.ucas.faker.web.entity.patents.Symbol;

import java.util.List;

@Repository
public interface SymbolDao extends JpaRepository<Symbol,Long> {

  public List<Symbol> findByPatentId(long patentId);

  public List<Symbol> findByPatentIdAndKind(long patentId, Symbol.Category kind);

  public List<Symbol> findByPatentIdAndKindAndOriginal(long patentId, Symbol.Category kind, String original);
  
  public void deleteByPatentId(long patentId);

  public void deleteByPatentIdAndKind(long patentId, Symbol.Category kind);
}
